package com.ccp.dev.core.poi.excel.style;

import org.apache.poi.ss.usermodel.VerticalAlignment;

/**
 * 垂直对齐方式
 * @author zxh
 *
 */
public enum VAlign {
	/**
	 * 顶部对齐
	 */
	TOP(VerticalAlignment.TOP),
	
	/**
	 * 居中对齐
	 */
	CENTER(VerticalAlignment.CENTER),
	
	/**
	 * 底部对齐
	 */
	BOTTOM(VerticalAlignment.BOTTOM),
	
	/**
	 * 自适应
	 */
	JUSTIFY(VerticalAlignment.JUSTIFY);
	
	private VerticalAlignment alignment;

	private VAlign(VerticalAlignment alignment){
		this.alignment = alignment;
	}

	public VerticalAlignment getAlignment() {
		return alignment;
	}
}
